package com.icloud.common.database.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 红包领取记录表
 * </p>
 *
 */
@Getter
@Setter
@TableName("red_packet_receive")
@ApiModel(value = "RedPacketReceive对象", description = "红包领取记录表")
public class RedPacketReceive implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("红包领取人id")
    @TableField("created_id")
    private Long createdId;

    @ApiModelProperty("红包id")
    @TableField("red_packet_id")
    private Long redPacketId;

    @ApiModelProperty("红包创建人id")
    @TableField("red_packet_created_id")
    private Long redPacketCreatedId;

    @ApiModelProperty("已领取金额")
    @TableField("amt_received")
    private BigDecimal amtReceived;
}
